package cn.edu.scau.cmi.dengzejun.chapter06;

public class Application1 {
	public static void main(String agrs[]) {
		Geometry bottom=new Rect(12,22);
		Pillar pillar=new Pillar(bottom,58);
		System.out.println("The volume of this pillar which the bottom is rectangle is "+pillar.GetVolume());
		bottom=new Circle(10);
		pillar =new Pillar(bottom,58);
		System.out.println("The volume of this pillar which the bottom is circle is "+pillar.GetVolume());
		return;
	}
}
